package org.com.structuralPattern.flyweightPattern;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/15 15:03
 */
public class ChesspieceFlyweight implements Chesspiece {

    private String color;

    public ChesspieceFlyweight(String color){
        this.color=color;
    }

    @Override
    public void put(int x, int y) {
        System.out.println("在"+x+","+y+"位置上放了一个 "+color+" 子");
    }
}
